﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TangoFamilyAndGuide.Master" AutoEventWireup="true" CodeBehind="HousingModificar.aspx.cs" Inherits="TangoFamilyAndGuide.Site.HousingModificar" Theme="Tango" Culture="en-GB" UICulture="en-GB" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>
<%@ Register TagPrefix="uc1" TagName="domicilio" Src="~/Controles/Domicilio2.ascx" %>
<%@ Register TagPrefix="uc1" TagName="contacto" Src="~/Controles/Contacto.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" style="padding-left:10px">
        <tr>
            <td align="center" colspan="2" style="padding-top:20px">
                <asp:Label ID="TituloPaginaLabel" runat="server" SkinID="TituloPagina" Text="Modify Milonguero Housing Network"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="left" style="padding-top:5px; font-weight: bold">
                Id. <asp:Label ID="IdHousingLabel" runat="server"></asp:Label>
            </td>
            <td align="right" style="padding-left: 10px">
                <asp:Label ID="EstadoActualLabel" runat="server" SkinID="IndicadorValidacion"></asp:Label>        
            </td>      
        </tr>
        <tr>
            <td colspan="2">
                 <hr noshade="noshade" size="1" color="#cccccc" />
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right:5px; padding-top:2px">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DescripcionTextBox"
                    ErrorMessage="Description" SetFocusOnError="True">
                    <asp:Label ID="Label8" runat="server" SkinID="IndicadorValidacion"></asp:Label>
                </asp:RequiredFieldValidator>
                <asp:Label ID="Label9" runat="server" Text="Description"></asp:Label>
            </td>
            <td align="left" style="padding-top:2px">
                <asp:TextBox ID="DescripcionTextBox" runat="server" TextMode="MultiLine" CssClass="MultilineFont" style="resize: none;" MaxLength="250" Height="100px" TabIndex="2" Width="400px"></asp:TextBox>
            </td>        
        </tr>
        <uc1:domicilio ID="Domicilio" runat="server"/>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label1" runat="server" Text="Neighborhood"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="NeighborhoodTextBox" runat="server" MaxLength="60" TabIndex="501" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <uc1:contacto ID="Contacto" runat="server" />
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label7" runat="server" Text="Comments"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="ComentariosTextBox" runat="server" MaxLength="250" CssClass="MultilineFont" style="resize: none;" TextMode="MultiLine" Height="80px" TabIndex="501" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label2" runat="server" Text="Size Sgm"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="SizeSgmTextBox" runat="server" MaxLength="60" TabIndex="501" Width="100px"></asp:TextBox>
            </td>
        </tr>
        <tr>
	        <td align="right" style="padding-right:5px; padding-top:5px">
		        <asp:Label ID="Label18" runat="server" Text="Type Place"></asp:Label>
	        </td>
			<td align="left" style="padding-top:5px">
				<asp:DropDownList ID="TypePlaceDropDownList" runat="server" TabIndex="501" Width="200px" DataValueField="Id" DataTextField="Descr">
				</asp:DropDownList>
			</td>
        </tr>
        <tr>
	        <td align="right" style="padding-right:5px; padding-top:5px">
		        <asp:Label ID="Label3" runat="server" Text="Type Room"></asp:Label>
	        </td>
			<td align="left" style="padding-top:5px">
				<asp:DropDownList ID="TypeRoomDropDownList" runat="server" TabIndex="501" Width="200px" DataValueField="Id" DataTextField="Descr">
				</asp:DropDownList>
			</td>
        </tr>
        <tr>
	        <td align="right" style="padding-right:5px; padding-top:5px">
		        <asp:Label ID="Label4" runat="server" Text="Type Bathroom"></asp:Label>
	        </td>
			<td align="left" style="padding-top:5px">
				<asp:DropDownList ID="TypeBathroomDropDownList" runat="server" TabIndex="501" Width="200px" DataValueField="Id" DataTextField="Descr">
				</asp:DropDownList>
			</td>
        </tr>
        <tr>
	        <td align="right" style="padding-right:5px; padding-top:5px">
                <asp:RequiredFieldValidator ID="HousingOfferRequiredFieldValidator" runat="server" ControlToValidate="HousingOfferDropDownList"
                    ErrorMessage="Housing Offer" SetFocusOnError="True"> <asp:Label ID="Label17" runat="server" SkinID="IndicadorValidacion"></asp:Label></asp:RequiredFieldValidator>
		        <asp:Label ID="Label5" runat="server" Text="Housing Offer"></asp:Label>
	        </td>
			<td align="left" style="padding-top:5px">
				<asp:DropDownList ID="HousingOfferDropDownList" runat="server" TabIndex="501" Width="200px" DataValueField="Id" DataTextField="Descr">
				</asp:DropDownList>
			</td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                &nbsp;(example: https://maps.google.es/?q=-34.582804,-58.420606)
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label16" runat="server" Text="Google Map Address"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="GoogleMapTextBox" runat="server" MaxLength="60" TabIndex="502"
                     Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:Label ID="Label14" runat="server" Text="Skype Address"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px" valign="top">
                <asp:TextBox ID="SkypeAddressMapTextBox" runat="server" MaxLength="60" TabIndex="502"
                     Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
	        <td align="right" style="padding-right:5px; padding-top:5px">
		        <asp:Label ID="Label6" runat="server" Text="Currency"></asp:Label>
	        </td>
			<td align="left" style="padding-top:5px">
				<asp:DropDownList ID="MonedaDropDownList" runat="server" TabIndex="501" Width="200px" DataValueField="Id" DataTextField="Descr">
				</asp:DropDownList>
			</td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:RegularExpressionValidator ID="PricePerDayRegularExpressionValidator"
                    runat="server" ControlToValidate="PricePerDayTextBox"
                    ErrorMessage="Error in format price" SetFocusOnError="True"
                    ValidationExpression="[0-9]+(\.[0-9]+)?">
                    <asp:Label ID="Label10" runat="server" SkinID="IndicadorValidacion"></asp:Label>
                </asp:RegularExpressionValidator>
                <asp:Label ID="Label11" runat="server" Text="Price Per Day"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px">
                <asp:TextBox ID="PricePerDayTextBox" runat="server" MaxLength="16" TabIndex="501"
                    Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" style="padding-right: 5px; padding-top:5px">
                <asp:RegularExpressionValidator ID="PricePerMonthRegularExpressionValidator"
                    runat="server" ControlToValidate="PricePerMonthTextBox"
                    ErrorMessage="Error in format price" SetFocusOnError="True"
                    ValidationExpression="[0-9]+(\.[0-9]+)?">
                    <asp:Label ID="Label12" runat="server" SkinID="IndicadorValidacion"></asp:Label>
                </asp:RegularExpressionValidator>
                <asp:Label ID="Label13" runat="server" Text="Price Per Month"></asp:Label>
            </td>
            <td align="left" style="padding-top:5px">
                <asp:TextBox ID="PricePerMonthTextBox" runat="server" MaxLength="16" TabIndex="501"
                    Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
	        <td align="right" style="padding-right:5px; padding-top:5px">
		        <asp:Label ID="Label15" runat="server" Text="Services"></asp:Label>
	        </td>
			<td align="left" style="padding-top:5px">
				<asp:CheckBoxList ID="ServicesListBox" runat="server" TabIndex="501" Width="200px" DataValueField="Id" DataTextField="Descr">
				</asp:CheckBoxList>
			</td>
        </tr>
        <tr>
            <td>
            </td>
            <td align="left" style="height: 24px; padding-top:20px">
                <asp:Button ID="AceptarButton" runat="server" TabIndex="504" Text="Accept" onclick="AceptarButton_Click" />
                <asp:Button ID="SalirButton" runat="server" CausesValidation="false" TabIndex="505" Text="Cancel" PostBackUrl="~/Home.aspx" />
                <input type="button" value="Go back" name="Volver" onclick="history.back()" />
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2" style="padding-top:20px">
                <asp:Label ID="MensajeLabel" runat="server" SkinID="MensajePagina" Text=""></asp:Label>
                <asp:ValidationSummary ID="MensajeValidationSummary" runat="server" SkinID="MensajeValidationSummary"></asp:ValidationSummary>
            </td>
        </tr>
    </table>
</asp:Content>
